package com.yilin.platform.base_core.tools.cmbc.entity.reconciliationOnline;


import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

/*. 对账结果查询(QryDebtResultList)*/
@XmlRootElement(name ="xDataBody" )
public class QryDebtResultList  {
    private  Integer allNum;//总记录数（★）
    private List<ResultListMap> mapDetList;

    public Integer getAllNum() {
        return allNum;
    }

    public void setAllNum(Integer allNum) {
        this.allNum = allNum;
    }

    public List<ResultListMap> getMapDetList() {
        return mapDetList;
    }
    @XmlElementWrapper(name = "List")
    @XmlElement(name = "Map")
    public void setMapDetList(List<ResultListMap> mapDetList) {
        this.mapDetList = mapDetList;
    }


}
class ResultListMap{
    private  String acNo;//银行账户
    private  String currency;//币种
    private  String acType;//账号性质
    private  String balance;//余额
    private  String status;//对账单状态
    private  String authDate;//对账日期
    private  String checkDate;//对账周期
    private  String checkResult;//对账结果
    private  String reasonType;//不相符原因
    private  String isAccord;//调节后结果
    private  String extFields1;//
    private  String extFields2;//
    private  String extFields3;//

    public String getAcNo() {
        return acNo;
    }

    public void setAcNo(String acNo) {
        this.acNo = acNo;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public String getAcType() {
        return acType;
    }

    public void setAcType(String acType) {
        this.acType = acType;
    }

    public String getBalance() {
        return balance;
    }

    public void setBalance(String balance) {
        this.balance = balance;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        if(status.equals("0")){
            this.status = "未填写";
        }else if(status.equals("1")){
            this.status = "已填写等待审核";
        }else if(status.equals("2")){
            this.status = "已提交银行";
        }else if(status.equals("3")){
            this.status = "驳回";
        }else{
            this.status = status;
        }

    }

    public String getAuthDate() {
        return authDate;
    }

    public void setAuthDate(String authDate) {
        this.authDate = authDate;
    }

    public String getCheckDate() {
        return checkDate;
    }

    public void setCheckDate(String checkDate) {
        this.checkDate = checkDate;
    }

    public String getCheckResult() {
        return checkResult;
    }

    public void setCheckResult(String checkResult) {
            if(checkResult.equals("0")){
                this.checkResult = "相符";
            }else if(checkResult.equals("1")){
                this.checkResult = "不相符";
            }else{
                this.checkResult = checkResult;
            }
    }

    public String getReasonType() {
        return reasonType;
    }

    public void setReasonType(String reasonType) {
        if(reasonType.equals("1")){
            this.reasonType = "未达账项";
        }else if(reasonType.equals("2")){
            this.reasonType = "银行错误";
        }else if(reasonType.equals("3")){
            this.reasonType = "单位错误";
        }else if(reasonType.equals("4")){
            this.reasonType = "未知原因";
        }else{
            this.reasonType = reasonType;
        }

    }

    public String getIsAccord() {
        return isAccord;
    }

    public void setIsAccord(String isAccord) {
        if(isAccord.equals("0")){
            this.isAccord = "相符";
        }else if(isAccord.equals("1")){
            this.isAccord = "不相符";
        }else{
            this.isAccord = isAccord;
        }
    }

    public String getExtFields1() {
        return extFields1;
    }

    public void setExtFields1(String extFields1) {
        this.extFields1 = extFields1;
    }

    public String getExtFields2() {
        return extFields2;
    }

    public void setExtFields2(String extFields2) {
        this.extFields2 = extFields2;
    }

    public String getExtFields3() {
        return extFields3;
    }

    public void setExtFields3(String extFields3) {
        this.extFields3 = extFields3;
    }
}
